import axios from 'axios';

export function getShopInfoPage(params: any) {
  return axios.get('/mall/shopinfo/page', { params });
}

export function addShopInfo(data: any) {
  return axios.post('/mall/shopinfo', data);
}

export function updateShopInfo(data: any) {
  return axios.put('/mall/shopinfo', data);
}

/**
 *  注意：这里是反单引号`
 */
export function deleteShopInfo(id: string) {
  return axios.delete(`/mall/shopinfo/${id}`);
}
